
<div class="page-search-bar">
  <div class="widget-header">
    <div class="align-left">
      <%= simple_form_for(orders_path, :method => 'get') do |f| %>
        <input type="text" name="order[order_code]" class="input-xs" placeholder="订单编号">

        <div class="widget-buttons buttons-bordered">
          <input class="btn btn-blue btn-xs" name="commit" type="submit" value="搜索">
        </div>
      <% end %>
    </div>
  </div>
</div>

<div class="row">
  <div class="col-xs-12 col-md-12">

    <div class="widget">

      <div class="widget-header bordered-bottom bordered-themeprimary">
        <i class="widget-icon fa fa-tasks themeprimary"></i>
        <span class="widget-caption themeprimary"><%=@page_title %></span>
        <div class="widget-buttons buttons-bordered">

        </div>

      </div><!--Widget Header-->
      <div class="widget-body">
        <div class="widget-main no-padding">
          <%= render 'layouts/flash_messages' %>

          <div class="flip-scroll">
            <div class="dataTables_wrapper form-inline no-footer">
              <table class="table table-bordered table-striped table-condensed flip-content">
                <thead class="flip-content bordered-palegreen">
                <tr>
                  <th>Name</th>
                  <th>Cell</th>
                  <th>Address</th>
                  <th>Partner</th>
                  <th colspan="3"></th>
                </tr>
                </thead>

                <tbody>
                <% @contacts.each do |contact| %>
                  <tr>
                    <td><%= contact.name %></td>
                    <td><%= contact.cell %></td>
                    <td><%= contact.address %></td>
                    <td><%= contact.partner_id %></td>
                  </tr>
                <% end %>
                </tbody>
              </table>


            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
